package org.oak.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * org.oak.controller.IndexController
 *
 * @author ZRS
 * @version V1.0
 * @since 2025/10/29 18:15
 */
@RestController
public class IndexController {

    @GetMapping(value = {"/index", "/"})
    public Map<String, Object> error() {
        Map<String, Object> map = new HashMap<>();
        map.put("code", "200");
        map.put("msg", "Welcome ~~");
        return map;
    }
}
